package demo2;

public class Money implements Cloneable{
    public double value;

    public Money(double value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Money{" +
                "value=" + value +
                '}';
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
